# -*- coding: utf-8 -*-
"""
Created on Thu Nov 28 17:00:16 2019

@author: yzjia
"""

import dateutil.parser
from collections import OrderedDict

DEFAULT_RT_CODE_MAPPING = {
    'time': 'f51',
    'close': 'f53',
    'vol': 'f56',
    'amt': 'f57',
    'am': 'f58'
}

DEFAULT_RT_PARSER_MAPPING = {
    'f51': dateutil.parser.parse,
    'f53': float,
    'f56': int,
    'f57': float,
    'f58': float
}

DEFAULT_FIELD_PARSER = float